home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #4 / Amiga Plus CD - 2000 - No. 4.iso / Tools / Dev / bignum / bignum.readme < prev    next >
Encoding:
Text File  |  2000-05-29  |  1.4 KB  |  40 lines

  1. Short: BigNum package (PPC+68k)
  2. Type: dev/c
  3. Uploader: info@ar-kleinert.de
  4. Author: unknown
  5.  
  6.  *************************************************************************
  7.  
  8.  Routines to do Big Number Arithmetic. These are multi-precision, unsigned
  9.  natural numbers (0, 1, 2, ...).
  10.  
  11.  Released to the public domain by Clifford Rhodes, June 15, 1995, with
  12.  no guarantees of any sort as to accuracy or fitness of use.
  13.  
  14.  Each int in the Big Number array will hold a digit up to MODULUS - 1.
  15.  Choosing 10000 makes testing easy because each digit contains 4 decimal
  16.  places.
  17.  
  18.  The Big Number is contained in a structure that has a length, nlen, and
  19.  an array, n[], of unsigned shorts to hold the 'digits'. The most
  20.  significant digit of the big number is at n[0]. The least significant
  21.  digit is at n[nlen - 1];
  22.  
  23.  *************************************************************************
  24.  
  25.  The Amiga 68k/PPC version comes with both, makefiles for 68k and PPC,
  26.  and test programs for both CPUs.
  27.  
  28.  Note, that the test program doesn't seem to do anything useful as
  29.  far as user interaction is concerned: it just tests its internal
  30.  routines and then waits for a key to be pressed.
  31.  
  32.  (Originally it would have run in an endless loop, but due to a missing
  33.   kbhit() function it's now just a single loop.)
  34.  
  35.  If someone has need for large unsigned numbers (or likes to extend
  36.  this to signed numbers) - well...
  37.  
  38.  --
  39.  ARK, 29/May/2000
  40.